#
# Be sure to run `pod lib lint ADSDK.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'ADSDK'
  s.version          = '1.0.3.3'
  s.summary          = '广告聚合平台，用于请求广告的iOS SDK'

  s.description      = <<-DESC
  目前第一个版本仅支持信息流模版广告.
                       DESC
                       
  s.homepage         = 'https://gitee.com/idcool/adsdk.git'
  
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  
  s.author           = { 'yueshuai' => 'yueshuai321@gmail.com' }
  
  s.source           = { :git => 'https://gitee.com/idcool/adsdk.git', :tag => s.version.to_s }

  s.ios.deployment_target = '12.0'
  s.requires_arc = true

  s.libraries  = 'z', 'c++', 'sqlite3', 'xml2', 'bz2', 'c++abi', 'resolv.9', 'iconv', 'c'

  s.frameworks = 'AdSupport', 'AVFoundation', 'AVKit', 'Accelerate', 'AudioToolbox', 'CoreData', 'CoreLocation', 'CoreMedia', 'CoreMotion', 'CoreGraphics', 'CoreTelephony', 'CoreImage', 'CoreText', 'Foundation', 'MediaPlayer', 'MessageUI', 'MobileCoreServices', 'MapKit', 'QuartzCore', 'QuickLook', 'SystemConfiguration', 'Security', 'StoreKit', 'WebKit', 'UIKit', 'ImageIO', 'SafariServices', 'JavaScriptCore'
  s.weak_frameworks = 'AppTrackingTransparency'

  s.subspec 'ADSDK' do |adsdk_ios|
    adsdk_ios.vendored_frameworks = "ADSDK.xcframework"
  end

  s.subspec 'SKSDK-iOS' do |sksdk|
    sksdk.dependency "KSAdSDK", "3.3.76"
  end

  
  # spec.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1' }
  
  s.requires_arc = true
  s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'armv7' }
  s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'armv7' }
  
  valid_archs = ['arm64']
  s.xcconfig = {
    "OTHER_LDFLAGS" => "-ObjC"
  }
end
